package site.addzero.generated.forms.dataprovider

import site.addzero.generated.api.ApiProvider
import site.addzero.generated.isomorphic.BizDotfilesIso
import site.addzero.generated.isomorphic.DeviceIso
import site.addzero.generated.isomorphic.ProductCategoryIso
import site.addzero.generated.isomorphic.ProductIso
import site.addzero.generated.isomorphic.ThingModelIso
import site.addzero.generated.isomorphic.SysDeptIso
import site.addzero.generated.isomorphic.SysDictIso
import site.addzero.generated.isomorphic.SysDictItemIso
import site.addzero.generated.isomorphic.SysRoleIso
import site.addzero.generated.isomorphic.SysUserIso


object Iso2DataProvider {
    val isoToDataProvider = mapOf(
        BizDotfilesIso::class to ApiProvider.bizDotfilesApi::tree,
        DeviceIso::class to ApiProvider.deviceApi::tree,
        ProductCategoryIso::class to ApiProvider.productCategoryApi::tree,
        ProductIso::class to ApiProvider.productApi::tree,
        ThingModelIso::class to ApiProvider.thingModelApi::tree,
        SysDeptIso::class to ApiProvider.sysDeptApi::tree,
        SysDictIso::class to ApiProvider.sysDictApi::tree,
        SysDictItemIso::class to ApiProvider.sysDictItemApi::tree,
        SysRoleIso::class to ApiProvider.sysRoleApi::tree,
        SysUserIso::class to ApiProvider.sysUserApi::tree
    )
}